package upb.webserver.test.swagger;

import org.junit.Test;

public class GenMarkDown {
    @Test
    public void genMarkDown() throws Exception {
//        Path outputFile = Paths.get("build/swagger");
//        Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder()
//                .withMarkupLanguage(MarkupLanguage.MARKDOWN)
//                .withOutputLanguage(Language.ZH)
//                .withPathsGroupedBy(GroupBy.TAGS)
//                .withGeneratedExamples()
//                .withoutInlineSchema()
//                .build();
//        Swagger2MarkupConverter converter = Swagger2MarkupConverter.from(new URL("http://0.0.0.0:5012/UPB-WebServer/v2/api-docs"))
//                .withConfig(config)
//                .build();
//        converter.toFile(outputFile);
    }
}
